<?php

	$tabelClass = new tabelClass();
	$tabelClass->connection = $conn;
	$tabelClass->widthno='3%';
	
	$arrayHeader = array("ID Panitia","ID PElamar","nama","Jabatan");
	$arrayAlign = array("","","","");
	$arrayWidth = array("8%","15%","13%","15%");

	$SQL="select id_panitia, id_pelamar, nama, jabatan from tblpanitia";
	
	$tabelClass->sql = $SQL;
	$tabelClass->index = $index;
	$tabelClass->dataPerPage = 10;
	$tabelClass->aksiAjax = "Modules/getPanita2.php?";
	$tabelClass->FormName = "FrmTblPanitia";
	$tabelClass->showChkPanel = true;
	$tabelClass->indexEdit = "0";
	$tabelClass->showIcon = true;

	$arrayIcon[] = array("1","", "ui-icon-newwin", "New", "ShowPopUp('SubModules/getFrmPanitia.php','',550,300)", "1");
	$arrayIcon[] = array("1","", "ui-icon-wrench", "Edit", "Edit('SubModules/getFrmPanitia.php','FrmTblPanitia','divPanitia',550,300)", "1");
	$arrayIcon[] = array("1","", "ui-icon-trash", "Hapus", "Delete('Modules/getPanitia2.php?','FrmTblPanitia','divPanitia')", "1");
	
	$tabelClass->arrayIcon = $arrayIcon;
	$tabelClass->field = $arrayHeader;
	$tabelClass->alignKolom = $arrayAlign;
	$tabelClass->widthKolom = $arrayWidth;
	$tabelClass->border = "0";
	$tabelClass->cellpadding = "1";
	$tabelClass->width = "100%";	
	
	$content = "";
	$OnClick = "Cari('Modules/getPanitia2.php?','frmCariPanitia','divPanitia')";
	$content .= "<form name=\"frmCariPanitia\" action=\"javascript:".$OnClick."\">";
	$content .= "<table width='' border=0>";
	$content .= "<tr><td>";
	$content .= "<select name=\"kolom_cari\" id=\"kolom_cari\" >"; 
	$content .= "<option value=\"\">All</option>";
	$content .= "<option value=\"nama\">Nama</option>";
	$content .= "<option value=\"id_panitia\">id panitia</option>";
	$content .= "<option value=\"id_pelamar\">id pelamar</option>";
	$content .= "</select>&nbsp;";
	$content .= "</td><td>";
	$content .= "<span id=\"divCari\">";	
	$content .= "<input type=\"text\" name=\"text_cari\" id=\"text_cari\" onclick=\"formdate('text_cari')\"/>&nbsp;";
	$content .= "<input type=\"hidden\" name=\"tipe\" value=\"0\">";
	$content .= "</span>";	
	$content .= "</td><td>";
	$content .="<a href=\"javascript:void(0)\" class=\"fg-button fg-button-icon-left ui-corner-all fg-button-bg\" OnClick=\"".$OnClick."\">";
	$content .="<span class=\"ui-icon ui-icon-search\"></span>Cari</a>";
	$content .= "<input type=\"submit\" name=\"\" value=\"Cari\" style=\"display:none;\"/>";
	$content .= "</td></tr>";
	$content .= "</table>";	
	$content .= "</form>";
	
	$content .= "<form name=\"FrmTblPanitia\" id=\"FrmTblPanitia\">";
	$content .= "<div name=\"divPanitia\" id=\"divPanitia\" style=\"margin-top:20px\">";
	$content .= $tabelClass->drawTabel();	
	$content .= "</div>";
	$content .= "</form>";
	return $content;

?>